Skip to content

feat(autopilot): answers to a paused autopilot can wake it - #682

Merged
kalaspuff merged 5 commits into
mainfrom
fctl/1831-when-responding-to-an-autopilot-ask-and
Dec 4, 2026
Merged

kalaspuff merged 5 commits into
mainfrom
fctl/1831-when-responding-to-an-autopilot-ask-and

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Answering what a paused autopilot asked stored the answer, closed the ask and left the autopilot paused: the answer endpoint woke it only while it was on. So an autopilot that paused itself to wait for that answer never heard it until someone resumed it, while the tab still said "Answered: it hears now". Carl Oscar chose to treat answers the way a message to a paused autopilot's session is treated: ask the person first, rather than always resume it, because a resume can move the autopilot onto the answerer's Claude subscription.

  • API: answers, secrets and declines take wake_autopilot. It resumes the autopilot with the answer, as POST …/autopilot/resume does. That resume is checked before anything is stored, so a refused wake leaves the ask open. After the answer is stored, fctl resumes the autopilot and its wake hears the answer ("Woke for being resumed, 2 answers"). The field is optional, so older clients are unaffected.
  • Web app: while the autopilot is paused, sending an answer (a pill, the send button, ⌘↩) or saving a secret opens the same pink card as Wake it and send: who paused it and why, then Wake it and answer (selected, so ⌘↩ then ↩ wakes it, with whose subscription it will run on when that changes) or Answer without waking it. The decline dialog offers both choices. The line under the answer and the toasts now say what actually happens: it woke, it hears once resumed, or, in red, it's still paused.
  • CLI: fctl autopilot answer, secret and decline take --wake. Without it, they say when the autopilot is paused and how to wake it.

Verified with unit tests (web and CLI), cargo xtask check --quick, and end to end in cargo xtask dev: the autopilot paused itself with two open asks; fctl autopilot secret left it paused and said so; Wake it and answer on the tab resumed it, and it folded both answers into its plan. The design docs are updated in hyperstructure/design:

Screenshots

Before, on main, while paused: the line promises it hears the answer at once.

before-hint.png

After: ⌘↩ on an answer while it's paused, light and dark.

after-card.png

after-dark-card.png

The paused line under the answer, and the card for a secret:

after-secret.png

Declining while it's paused:

after-decline.png

At phone width, the pill chosen stays lit:

after-phone-card.png

After Wake it and answer: on again, the log shows the resume and the wake that heard both answers, and the toast says so.

e2e-woke.png

Worth confirming

  • Decision: the choice is offered for every pause (by itself, a person or fctl), and again for each answer, so someone answering several asks can wake the autopilot with only the last one. Unlike messages, choosing "without waking" isn't remembered.
  • Decision: secrets and declines get the same choice as answers, since an autopilot may be waiting for those too.
  • Decision: the autopilot's brief now tells it that people may resume it with their answer, as well as with a message.

fctl session


Note

Medium risk. It adds a field to the answer API and changes how answering an ask on a paused autopilot works in the CLI, control API and web app, so an answer can now resume the autopilot.

What it does. Lets an answer or secret given to a paused autopilot's ask optionally wake it, through a new wake_autopilot field on the answer and decline requests. The CLI and the web Autopilot tab ask the reader whether to wake it, and the web card stays open after a failed send to retry unless the answer changed meanwhile.

API change. The answer and decline requests gain wake_autopilot, with generated web types and docs updated.

fctl review's first look at c4737a5 · 16 files, +908 −126 · Review agent settings

Answering what a paused autopilot asked stored the answer and left it
paused: fctl woke it only while it was on, so an autopilot that paused
itself to wait for that answer never heard it until someone resumed it,
while the tab said "Answered: it hears now".

Answers, secrets and declines take wake_autopilot, which resumes the
autopilot with them as a resume does (checked before anything goes).
The Autopilot tab asks first while it's paused, in the pink card a
message to its session uses: Wake it and answer (focused, so ⌘↩ then ↩
wakes it) or Answer without waking it; the decline dialog offers both.
fctl autopilot answer, secret and decline take --wake, and say when the
autopilot is paused.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl/src/cmd/autopilot.rs Resolved
@fctl-review

This comment has been minimized.

@fctl-review

This comment has been minimized.

@fctl-review

This comment has been minimized.

@kalaspuff
kalaspuff merged commit d45f926 into main Dec 4, 2026
12 of 13 checks passed
@kalaspuff
kalaspuff deleted the fctl/1831-when-responding-to-an-autopilot-ask-and branch December 4, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant